<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

<table class="cntable table table-bordered dataTable table-serveProject multi">
	<thead>
		<tr>
			<th style="width: 50px">序号</th>
			<th style="width: 100px">商品编码</th>
			<th style="width: 100px">商品名称</th>
			<th style="width: 100px">商品规格</th>
			<th style="width: 100px">基本单位</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="collocation" items="${collocations}" varStatus="status">
			<tr data-id="${collocation.collocationId}" data-json='${tfn:toJson(collocation)}'>
				<td>${status.index+1}</td>
				
				<td>${collocation.cargo.cargoNo}</td>
				<td>${collocation.cargo.cargoName}</td>
				
				<c:if test="${collocation.propertyNameOne ne null &&collocation.propertyNameTwo ne null }">
					<td>${collocation.propertyNameOne }*${collocation.propertyNameTwo }</td>
				</c:if>
				<c:if test="${collocation.propertyNameOne ne null &&collocation.propertyNameTwo eq null }">
					<td>${collocation.propertyNameOne }</td>
				</c:if>
				
				<td>${collocation.cargo.unit}</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/simplePager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>